package com.mmy.study.mapper;

import com.mmy.study.dao.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    User loadUserByUsername(@Param("username") String username);
    long reg(User user);
    User getById(@Param("id") long userId);
}
